<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        a {
            text-decoration: none;
        }

        ul li {
            list-style: none;
        }

        .box {
            /* width: 100%; */
            /* height: 100vh; */
            background-color: rgba(255, 255, 255, .8);
            width: 860px;
            margin: 80px auto;
            padding: 30px;
            box-sizing: border-box;
            border-radius: 10px;
            transition: all .3s;
            box-shadow: 0 0 15px #ddd;
        }

        .box:hover {
            box-shadow: 0 0 25px rgba(0, 0, 0, .5);
        }


        /* 背景图 */
        element.style {
            padding: 0px;
            margin: 0px;
        }

        #mydiv {
            height: 100vh;
            position: fixed;
            z-index: -1;
        }


        element.style {
            position: fixed;
            top: 0px;
            left: 0px;
            z-index: -1;
        }

        canvas[属性样式] {
            aspect-ratio: auto 1530 / 460;
        }

        /* 用户代理样式表 */
        canvas {
            overflow-clip-margin: content-box;
            overflow: clip;
        }


        /* 头部样式 */

        .top {
            transition: all .5s linear;
            position: fixed;
            top: 0;
            width: 100%;
            box-sizing: border-box;
            padding: 10px 15px;
            background: rgba(255, 255, 255);
            box-shadow: 0 0 10px #888888;
            z-index: 9999;
            display: flex;
            justify-content: space-between;
        }

        .top-left {
            /* background-color: aqua; */
            width: 120px;
            height: 30px;
            line-height: 30px;
            text-align: center;
        }

        .top-left span {
            font-family: 楷体;
            font-size: 20px;
        }

        .top-right {
            /* background-color: seashell; */
            width: 250px;
            height: 30px;
        }

        .top-right ul {
            width: 250px;
            height: 30px;
            display: flex;
            justify-content: space-around;
            /* align-content: center; */
        }

        .top-right ul li {
            /* width: 250px; */
            height: 30px;
            line-height: 30px;

        }

        .top-right ul li a {
            color: black;
        }
    </style>
</head>

<body>
    <div class="top">
        <div class="top-left">
            <span>啊对对对</span>
        </div>
        <div class="top-right">
            <ul>
                <li>
                    <a href="#">Home</a>
                </li>
                <li>
                    <a href="#">Article</a>
                </li>
                <li>
                    <a href="#">Tags</a>
                </li>
            </ul>
        </div>
    </div>


    <div id="mydiv" style="padding: 0px; margin: 0px;"><canvas width="1530"
            style="position: fixed; top: 0px; left: 0px; z-index: -1;" height="460"></canvas></div>
    <div class="box">

    </div>
    <script src="./js/jquery-3.5.1/jquery-3.5.1.js"></script>
    <script src="./js/details.js"></script>
    <script type="text/javascript">
        window.onload = function () {
            //配置
            var config = {
                vx: 4,	//小球x轴速度,正为右，负为左
                vy: 4,	//小球y轴速度
                height: 2,	//小球高宽，其实为正方形，所以不宜太大
                width: 2,
                count: 300,		//点个数
                color: "187, 255, 255", 	//点颜色
                stroke: "142, 229, 238", 		//线条颜色
                dist: 6000, 	//点吸附距离
                e_dist: 10000, 	//鼠标吸附加速距离
                max_conn: 10 	//点到点最大连接数
            }

            //调用
            CanvasParticle(config);
        }
    </script>
    <script src="./js/bg.js"></script>
</body>

</html>